package com.dingreading.cloud.admin.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BooksDto implements Serializable {

    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    private String author;

    private Long bookLabelId;

    private String bookLabelName;

    private String bookName;

    private String bookNum;

    private String bookType;

    private Long bookTypeId;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date editTime;

    private String img;

    private String introduction;

    private String isbn;

    private Long journalId;

    private String journalName;

    private String journalNum;

    private String press;

    private Integer status;

    private String synopsis;

    private Double unitPrice;

    private Double wordCount;

    private Integer source;

    private Long sourceStoreId;

    /**
     * 出版日期
     */
    private String pubDate;

}
